home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 137 / cd-rom 137.iso / aplic / gantt / ganttproject-2.0.2.exe / net.sourceforge.ganttproject_2.0.0 / data / resources / xslt / gantt-utils.xsl < prev    next >
Encoding:
Extensible Markup Language  |  2006-08-08  |  3.4 KB  |  117 lines

  1. <?xml version="1.0" encoding="iso-8859-2" ?>
  2. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  3.  
  4. <xsl:template name="header">
  5.     <br /><br />
  6.     
  7.     <center><table width="100%" border="0"><tr><td bgcolor="#dddddd">
  8.     <font size="+2" color="#0000000"><b><xsl:value-of select="/ganttproject/project/name"/></b></font>
  9.     </td></tr></table></center>
  10.     
  11.     <center><table width="100%" border="0"><tr>  
  12.     <td bgcolor="#6d9ec6"><center>
  13.     
  14.     <a>
  15.     <xsl:attribute name="href"><xsl:value-of select="/ganttproject/links/@prefix" />.html</xsl:attribute>
  16.     <xsl:value-of select="/ganttproject/links/home" />
  17.     </a>  | 
  18.     <a>
  19.     <xsl:attribute name="href"><xsl:value-of select="/ganttproject/links/@prefix" />-chart.html</xsl:attribute>
  20.     <xsl:value-of select="/ganttproject/links/chart" />
  21.     </a> | 
  22.     <a>
  23.     <xsl:attribute name="href"><xsl:value-of select="/ganttproject/links/@prefix" />-tasks.html</xsl:attribute>
  24.     <xsl:value-of select="/ganttproject/links/tasks" />
  25.     </a> | 
  26.     <a>
  27.     <xsl:attribute name="href"><xsl:value-of select="/ganttproject/links/@prefix" />-resources.html</xsl:attribute>
  28.     <xsl:value-of select="/ganttproject/links/resources" />
  29.     </a>
  30.     
  31.     </center></td></tr></table></center>
  32.     
  33.     <br />
  34.     
  35. </xsl:template>
  36.  
  37. <xsl:template name="footer">
  38.     <br />
  39.     
  40.     <table width="100%" border="0" cellpadding="0" cellspacing="0"><tr>  
  41.     <td bgcolor="#6d9ec6" width="50%">
  42.     <font color="#FFFFFF">
  43.     <b><xsl:value-of select="/ganttproject/footer/@version"/></b></font></td >
  44.     <td bgcolor="#6d9ec6" width="50%" align="right">
  45.     <b><a href="http://ganttproject.org">ganttproject.org</a></b><br />
  46.     <b><xsl:value-of select="/ganttproject/footer/@date"/></b>
  47.     </td></tr></table>
  48. </xsl:template>
  49.  
  50. <xsl:template match="/">
  51.     <html>
  52.     <head>
  53.         <meta name="author" content="Alexandre THOMAS" />
  54.         <title><xsl:value-of select="/ganttproject/title"/></title>
  55.     
  56.         <style>
  57.         A:link {
  58.         FONT-WEIGHT: bold;  TEXT-DECORATION: none;
  59.         FONT-SIZE: 14px ; COLOR: black;
  60.         }
  61.         A:visited {
  62.         FONT-WEIGHT: bold;  TEXT-DECORATION: none;
  63.         FONT-SIZE: 14px ; COLOR: black; BACKGROUND: none
  64.         }
  65.         A:hover {
  66.         FONT-WEIGHT: bold;  TEXT-DECORATION: none;
  67.         FONT-SIZE: 14px ; COLOR: white ; BACKGROUND: #6d9ec6;
  68.         }
  69.         TD {
  70.         FONT-SIZE: 12px; COLOR: black; FONT-STYLE: normal; FONT-FAMILY: Arial, Helvetica, Geneva, sans-serif
  71.         }
  72.         UL {
  73.         FONT-SIZE: 12px; FONT-FAMILY: Arial, Helvetica, Geneva, sans-serif
  74.         }
  75.         LI {
  76.         FONT-SIZE: 12px; FONT-FAMILY: Arial, Helvetica, Geneva, sans-serif
  77.         }
  78.         H1 {
  79.         FONT-WEIGHT: bold; FONT-SIZE: 16pt; COLOR: #6d9ec6;
  80.         }
  81.         H2 {
  82.         FONT-WEIGHT: bold; FONT-SIZE: 16pt; COLOR: #000000;
  83.         }
  84.         H3 {
  85.         FONT-WEIGHT: bold; FONT-SIZE: 13pt; COLOR: #6d9ec6;
  86.         }
  87.         H4 {
  88.         FONT-WEIGHT: bold; FONT-SIZE: 13px; COLOR: #000000;
  89.         }
  90.         H5 {
  91.         FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #6d9ec6;
  92.         }
  93.         H6 {
  94.         FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #000000
  95.         }
  96.         
  97.         </style>
  98.     </head>
  99.     <body bgcolor="white">
  100.     <center>
  101.         <xsl:call-template name="header"/>
  102.         <xsl:apply-templates/>
  103.     </center>
  104.     <xsl:call-template name="footer"/>
  105.     </body>
  106.     </html>
  107. </xsl:template>
  108.  
  109. <xsl:template match="links" />
  110. <xsl:template match="title" />
  111. <xsl:template match="project" />
  112. <xsl:template match="chart" />
  113. <xsl:template match="resources" />
  114. <xsl:template match="tasks" />
  115.  
  116. </xsl:stylesheet>
  117.